import Vue from 'vue';
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css';
import App from './App.vue';
import VueRouter from 'vue-router';
import {routes} from './routes';
import axios from 'axios';
import VueAxios from 'vue-axios';
import {store} from './store';
 


Vue.use(VueAxios, axios)
Vue.use(MintUI)
Vue.use(VueRouter);

const router = new VueRouter({
  routes:routes, // 可以直接写成routes
  mode:'history' // mode设置成history，那么地址就可以请求http://localhost:8080/user
});


new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
